package com.gitee.openviducn.inspector.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: https://gitee.com/wesleyOne
 * @Date: 02.26 2020
 */
@Configuration
@MapperScan(basePackages = {"com.gitee.openviducn.inspector.datasource.mapper"})
public class MyBatisPlusConfig {

    /**
     * mybatis-plus分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
